package com.ruoyi.iot.mapper;

import com.ruoyi.iot.dto.Sensor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SensorMapper {

    void upload(Sensor sensor);

    void delete(String id);

    List<Sensor> search(@Param("mineId") String mineId, @Param("sensorType") String sensorType, @Param("runningState") Integer runningState);

    void update(Sensor sensor);

    List<Sensor> searchAll();

    Integer getCountSensorId(String sensorId);

    String getNewSensorId();
}
